package swu.edu.cn.javaee.entity;

import org.apache.ibatis.type.Alias;

@Alias("comment")
public class Comment {
    private String comment_id;
    private String comment;
    private String news_id;
    private String user_id;
    private String parent_id;
    private String nickname;
    private String date;

    public String getComment_id() {
        return comment_id;
    }

    public String getComment() {
        return comment;
    }

    public String getNews_id() {
        return news_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public String getParent_id() {
        return parent_id;
    }

    public String getNickname() {
        return nickname;
    }

    public String getDate() {
        return date;
    }

    public void setComment_id(String comment_id) {
        this.comment_id = comment_id;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public void setNews_id(String news_id) {
        this.news_id = news_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setDate(String date) {
        this.date = date;
    }



    @Override
    public String toString() {
        return "Comment{" +
                "comment_id='" + comment_id + '\'' +
                ", comment='" + comment + '\'' +
                ", news_id='" + news_id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", parent_id='" + parent_id + '\'' +
                ", nickname='" + nickname + '\'' +
                ", date='" + date + '\'' +
                '}';
    }



}

